const user = {
    state: {
        userInfo: {
            name: '马冬梅',
            age: 20
        }
    },
    mutations: {
        SET_USER_INFO(state, userInfo) {
            state.userInfo = userInfo;
        }
    },
    actions: {
        setUserInfo({commit}, userInfo) {
            commit("SET_USER_INFO", userInfo)
        }
    }
}

export  default  user
